home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / configure < prev    next >
Encoding:
Text File  |  2003-01-22  |  773 b   |  25 lines  |  [TEXT/ttxt]

  1. #!/bin/sh
  2. if test ! -x  ./scripts/mysql_install_db
  3. then
  4.   echo "I didn't find the script './scripts/mysql_install_db'."
  5.   echo "Please execute this script in the mysql distribution directory!"
  6.   exit 1;
  7. fi
  8.  
  9. echo "NOTE: This is a MySQL binary distribution. It's ready to run, you don't"
  10. echo "need to configure it!"
  11. echo ""
  12. echo "To help you a bit, I am now going to create the needed MySQL databases"
  13. echo "and start the MySQL server for you.  If you run into any trouble, please"
  14. echo "consult the MySQL manual, that you can find in the Docs directory."
  15. echo ""
  16.  
  17. ./scripts/mysql_install_db
  18. if [ $? = 0 ]
  19. then
  20.   echo "Starting the mysqld server.  You can test that it is up and running"
  21.   echo "with the command:"
  22.   echo "./bin/mysqladmin version"
  23.   ./bin/safe_mysqld &
  24. fi
  25.